#ifndef NETWORK_SERVICE_H
#define NETWORK_SERVICE_H

//******************************* 新服务定义 *******************************/
// 服务UUID: e5669516-ebc2-4119-9cd9-bcf315df7875
#define NETWORK_SVC_UUID {0xe5, 0x66, 0x95, 0x16, 0xeb, 0xc2, 0x41, 0x19, 0x9c, 0xd9, 0xbc, 0xf3, 0x15, 0xdf, 0x78, 0x75}

// 写特征UUID: e7996d1b-441d-48a1-b2c2-fd43875bc818
#define NETWORK_write_uuid {0xe7, 0x99, 0x6d, 0x1b, 0x44, 0x1d, 0x48, 0xa1, 0xb2, 0xc2, 0xfd, 0x43, 0x87, 0x5b, 0xc8, 0x18}

// 读特征UUID: 4ef20b98-06c9-4db6-a823-d3386bdc831e
#define NETWORK_read_uuid {0x4e, 0xf2, 0x0b, 0x98, 0x06, 0xc9, 0x4d, 0xb6, 0xa8, 0x23, 0xd3, 0x38, 0x6b, 0xdc, 0x83, 0x1e}

/*
 * MACROS (宏定义)
 */

/*
 * CONSTANTS (常量定义)
 */
// Simple Profile attributes index.
enum
{
    NETWORK_IDX_SERVICE,

    NETWORK_IDX_CHAR1_DECLARATION,
    NETWORK_IDX_CHAR1_VALUE,
    NETWORK_IDX_CHAR1_CFG,
    NETWORK_IDX_CHAR1_USER_DESCRIPTION,

    NETWORK_IDX_CHAR2_DECLARATION,
    NETWORK_IDX_CHAR2_VALUE,
    NETWORK_IDX_CHAR2_USER_DESCRIPTION,

    NETWORK_IDX_NB,
};

extern uint8_t network_svc_id;

extern void network_gatt_add_service(void);

extern void network_gatt_report_notify(uint8_t conidx, uint8_t *p_data, uint16_t len);

#endif
